package io.modifier.basic.compose.hooks

import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect

/** 组件卸载时执行 **/
@Composable
fun useUnmount(block: () -> Unit) = DisposableEffect(Unit) {
    onDispose(block)
}
